package com.zyong.jacoco.test1.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("show")
@RestController
public class ShowNumController {
    @RequestMapping("num")
    public String numShow(@RequestParam("num") int num) {
        String returnStr;

        if (num == 1) {
            returnStr = "nice 1";
        } else if (num == 2) {
            returnStr = "good 2";
        } else if (num == 3) {
            returnStr = "greate 3";
        } else {
            returnStr = "default 0";
        }

        return returnStr;
    }
}
